package com.androidcentralmedias;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class Play extends Activity {
	public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        Log.d("UDP","fjdsifhdsjfs");
        setContentView(R.layout.play);
        final Button playButton = (Button) findViewById(R.id.play);
        final Button stopButton = (Button) findViewById(R.id.stop);
        playButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
            	Client.enviar("?play");
            	if (playButton.getText() == ">"){
            		playButton.setText("| |");
            	}
            	else {
            		playButton.setText(">");
            	}
            	}});
        stopButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
            	Client.enviar("?stop");
            	}});
    }

}
